mxs_ocotp: Shift the HBUS divider correctly
authorChris Smith <[email protected]>
Sun, 12 Jul 2015 13:00:11 +0000 (15:00 +0200)
committerStefano Babic <[email protected]>
Wed, 2 Sep 2015 13:26:13 +0000 (15:26 +0200)
commitd4b8b5d46effb22f9735b924a7da502c2907b82b
treef7371cd912c5d61e23b9e4e76352a7298316d9e4
parentf3488bb39d0ffe274cefdc7c42e3e63a636d9cd6
mxs_ocotp: Shift the HBUS divider correctly

When the original HBUS divider value is retrieved in mxs_ocotp_scale_hclk()
for the purpose or restoring it back later, the value is not shifted by the
HBUS divider offset in that register. This is not a problem, since the shift
is zero on all MXS hardware. Add the shift anyway, for completeness and in
case FSL ever decides to re-use this driver on future designs.

Signed-off-by: Chris Smith <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Stefano Babic <[email protected]>
drivers/misc/mxs_ocotp.c